package com.bauer.java.mybatis.service;

import com.bauer.java.mybatis.mapper.DmCollectLogMapper;
import com.bauer.java.mybatis.mapper.PageDto;
import com.bauer.java.mybatis.model.DmCollectLog;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

/**
 * @description:
 * @author: weirui
 * @create: 2020-09-23 15:11
 **/
public class DmCollectLogServiceImpl {

    private DmCollectLogMapper collectLogMapper;


    public void select(PageDto pageDto) {
        PageHelper.startPage(pageDto.getPageNum(), pageDto.getPageSize());
        Page<DmCollectLog> page = collectLogMapper.selectByPage();

        //总数
        page.getTotal();
        //数据
        page.getResult();
    }
}
